import store from '@/store'
// 加载图片
export const imgError = {
  inserted(dom, bindings, vNode) {
    // dom.style.color = bindings.value
    dom.onerror = function() {
      dom.src = bindings.value
    }
  }
}
// 自定义按钮
export const permission = {
  inserted(dom, bindings, vNode) {
    // dom.style.color = bindings.value
    console.log(bindings.value)
    console.log(store.getters.points)
    if (!store.getters.points.includes(bindings.value)) {
      dom.style.display = 'none'
    }
  }
}
